package com.tbit.main.controller;

import com.tbit.main.common.JsonResult;
import com.tbit.main.pojo.VerticalParkLog;
import com.tbit.main.service.TokenService;
import com.tbit.main.service.VerticalParkLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 垂直停车记录查询
 *
 * @author LMY
 * @create 2023-07-11 14:46
 */
@RestController
@RequestMapping("/verticalParkLog")
public class VerticalParkLogController {

    @Autowired
    private TokenService tokenService;
    @Autowired
    private VerticalParkLogService verticalParkLogService;

    /**
     * 查看垂直停车失败
     *
     * @param token
     * @param accountId
     * @param parkPointId
     * @param userCode
     * @param result
     * @param enable
     * @return
     */
    @RequestMapping("/getVertical")
    public JsonResult<List<VerticalParkLog>> getVertical(String token, Integer accountId, Integer parkPointId, String userCode, Integer result, Integer enable) {
        return JsonResult.succ(verticalParkLogService.getVertical(accountId, parkPointId, userCode, result, enable));
    }
}
